<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>产品中心</title>
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/style.css">
    <script type="text/javascript" src="js/jquery.js"></script>
    <script src="js/tab.js"></script>
</head>
<body>
    <div class="header clearfix">
        <div class="header-left">
            <a href="index.html">
            <img src="./img/logo.png" alt="">
        </a>
        </div>
        <div class="header-right">
            <div class="login_bar">
                    <a href="login.html">登录</a><a href="register.html">注册</a>
            </div> 
            <div class="main_nav clearfix">
                <ul>
                    <li class="main-txt"><a href="index.html">首页</a></li>
                    <li class="main-txt"><a href="Brand_introduction.html">品牌介绍</a></li>
                    <li class="main-txt"><a href="new.html">新闻中心</a></li>
                    <li class="main-txt font-weight"><a href="Product_Center.html">产品中心</a></li>
                    <li class="main-txt"><a href="contact.html">联系我们</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="banner">
        <img src="./img/banner2.jpg" alt="">
    </div>
    <div class="cont-img">
        <img src="./img/cup.png" alt="" class="cont-bg">
        <div class="content">
            <div class="content-top">
                <span class="content-txt">PRODUCT CENTER</span><br/>
                <span class="line"></span><span class="content-txt-two">产品中心</span><span class="line"></span>
        </div>
        <div class="cont-bottom clearfix">
              <div class="box-show"></div>
              <div class="left">
                    <div class="left-top">
                        <img src="./img/logo2.png" alt="">
                    </div>
                    <div class="left-bottom">
                        <ul>
                            
                            <li class="font-weight"><a href="">最新时尚</a></li>
                            <li><a href="">公司治理</a></li>
                            <li><a href="">产品发布</a></li>
                            <li><a href="">品牌中心</a></li>
                        </ul>
                    </div>
              </div>
              <div class="right right-w clearfix">
                <div class="pro_deta-letf left">
                    <div class="infor_right">
                        <div class="bigImg"><img src="./img/coffee3.jpg" alt=""/></div>
                        <div><img src="./img/coffee3.jpg" alt=""/></div>
                        <div><img src="./img/coffee3.jpg" alt=""/></div>
                        <div><img src="./img/coffee4.jpg" alt=""/></div>
                        <ul class="smallImg">
                            <li class="currentImg"><img src="./img/coffee3.jpg" alt=""/></li>
                            <li><img src="./img/coffee3.jpg" alt=""/></li>
                            <li><img src="./img/coffee3.jpg" alt=""/></li>
                            <li><img src="./img/coffee4.jpg" alt=""/></li>
                        </ul>
                    </div>
                </div>
                <div class="pro_deta-right right">
                    <div class="pro_deta-right-txt">
                    <h3>意大利浓缩咖啡</h3>
                    <span>哥斯达黎加的高纬度地方所生产的咖啡豆是世上赫赫有名的，浓郁，味道温和，但极酸</span>
                </div>
                <div class="pro-jg"> 
                    <span>价格</span><span class="pro-jg-red">￥：66.00</span>
                    <p>下午茶时间：13：00 - 17:00<br>全场5折</p>
                </div>
                <div class="pro-number">
                    <ul class="pro-number-count clearfix">
                            <li class="pro-number-count-txt"><span>数量：</span></li>
                            <li><span id="num-jian" class="num-jian">-</span></li>
                            <li><input type="text" class="input-num" id="input-num" value="1" /></li>
                            <li><span id="num-jia" class="num-jia">+</span></li>
                        </ul>
                </div>
                <div class="pro-shoppa">
                        <a href="" class="pro-shoppa-txt">立即购买</a>
                        <a href="" class="pro-shoppa-txt2">加入购物车</a>
                </div>
            </div>
             
        </div>
        </div>
    </div>
    <div class="footer">
        <div class="footer-content">
            <div class="footer-img">
            <img src="./img/logo.jpg" alt="">
            <img src="./img/weixin.jpg" alt="">
        </div>
        <div class="footer-txt">
            <span>电话：0971-8888888888</span></br>
            <span>© 2005－2015 douban.com, all rights reserved</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>地址：南昌市南昌县西湖区八一大道</span></br>
            <span>关于我们 意见反馈 免责声明 Copyright © 2014 Sogou.com. All Rights Reserved. 京ICP证050897号</span>
        </div>
        </div>
    </div>

</body>
<script>
		var num_jia = document.getElementById("num-jia");
		var num_jian = document.getElementById("num-jian");
		var input_num = document.getElementById("input-num");

		num_jia.onclick = function() {

			input_num.value = parseInt(input_num.value) + 1;
		}

		num_jian.onclick = function() {

			if(input_num.value <= 0) {
				input_num.value = 0;
			} else {

				input_num.value = parseInt(input_num.value) - 1;
			}

		}
		
		/* 如果在和后台做数据交互时，出现点击加减按钮的值无法传到后台的情况，可以用下面这种方式
		$("body").on("click", ".num-jian", function(m) {
			var obj = $(this).closest("ul").find(".input-num");
			if(obj.val() <= 0) {
			     obj.val(0);
			} else {
			     obj.val(parseInt(obj.val()) - 1);
			}
			obj.change();
		 });
		
		$("body").on("click", ".num-jia", function(m) {
			var obj = $(this).closest("ul").find(".input-num");
			obj.val(parseInt(obj.val()) + 1);
			obj.change();
		});*/
	</script>
</html>